from rdflib import Graph

g = Graph()
g.parse("http://dbpedia.org/resource/Semantic_Web")

for s, p, o in g:
    print(s, p, o)
